import warnings
warnings.filterwarnings('ignore')
from ultralytics import YOLO

if __name__ == '__main__':
   model =YOLO("yolo11n-seg.pt")
   seg_results =model("img.png",save=True)
   seg_results[0].show()